package ooday04;

/**
 * @author Pxl
 */
public class Dog extends Animal implements Swim {
    String breed;
    Dog(String breed,String name,int age,String gender){
        super(name,age,gender);
        this.breed=breed;
    }
    @Override
    public void swim(){
        System.out.println(name+"会狗刨式游泳");
    }
    @Override
    public void eat(){
        System.out.println(name+"喜欢吃大骨头");
    }
    void lookHome(){
        System.out.println("这只"+breed+"它会看家");
    }
}
